package com.baidu.uidgenerator;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.sql.DataSource;
import java.sql.Connection;

/**
 * @author lovelyhedong
 * @version 1.0.0
 * @date 2021/11/30
 */
@SpringBootApplication
public class UidBoot {
    @Autowired
    private DataSource dataSource;


    public static void main(String[] args) {
        SpringApplication.run(UidBoot.class, args);
    }

//    @Override
//    public void run(String... args) throws Exception {
//        Connection conn = dataSource.getConnection();
////        conn.close();
//
//        System.out.println(conn.toString());
//    }
}
